package com.example.springboot.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author SYG
 * @since 2024-04-05
 */
@TableName("alarm_table")
public class AlarmTable extends Model<AlarmTable> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Long id;

    /**
     * 血压值
     */
    private Float bloodValue;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 设备编号
     */
    private String deviceId;

    private String alarmValue;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Float getBloodValue() {
        return bloodValue;
    }

    public void setBloodValue(Float bloodValue) {
        this.bloodValue = bloodValue;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getAlarmValue() {
        return alarmValue;
    }

    public void setAlarmValue(String alarmValue) {
        this.alarmValue = alarmValue;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "AlarmTable{" +
        "id=" + id +
        ", bloodValue=" + bloodValue +
        ", createTime=" + createTime +
        ", deviceId=" + deviceId +
        ", alarmValue=" + alarmValue +
        "}";
    }
}
